package jy.game.components.story;


import java.util.ArrayList;
import java.util.List;

import jy.game.BasePojo;
import wx.xml.simpleframework.xml.Attribute;
import wx.xml.simpleframework.xml.ElementList;
import wx.xml.simpleframework.xml.ElementListUnion;
import wx.xml.simpleframework.xml.Root;

@Root(name = "story")
public class JyStory extends BasePojo {

    @Attribute(name = "name") public String name;

    @ElementListUnion({
        @ElementList(entry = "action", inline = true, type = JyStoryAction.class),
        @ElementList(entry = "result", inline = true, type = JyStoryResult.class)
    }) public @ElementList(inline = true) List<Object> actions = new ArrayList<>();

    // (get) Token: 0x0600055D RID: 1373 RVA: 0x00004EA7 File Offset: 0x000030A7
    @Override public /*override*/ String getPK() {
        {
            return this.name;
        }
    }
}